﻿@model TicketDesk.Domain.Model.Project

@section title
{
    New Project
}
<main>
    <div class="container">
        <fieldset>
            <legend class="col-lg-8 col-lg-offset-2 col-md-9 col-md-offset-1 col-sm-12">Create Project</legend>
            <div class="col-lg-7 col-lg-offset-3 col-md-8 col-md-offset-2 col-sm-12">
                @using (Html.BeginForm("New", "ProjectSettings", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
                {
                    @Html.AntiForgeryToken()
                   
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <h2 class="panel-title">Project Details</h2>
                        </div>
                        <div class="panel-body">
                            @Html.ValidationSummary("", new { @class = "text-danger" })
                            <div class="form-group">
                                @Html.LabelFor(m => m.ProjectName, new { @class = "col-sm-3 control-label" })
                                <div class="col-sm-9">
                                    @Html.TextBoxFor(m => m.ProjectName, new { @class = "form-control" })
                                </div>
                            </div>

                            <div class="form-group">
                                @Html.LabelFor(m => m.ProjectDescription, new { @class = "col-sm-3 control-label" })
                                <div class="col-sm-9">
                                    @Html.TextBoxFor(m => m.ProjectDescription, new { @class = "form-control" })
                                </div>
                            </div>

                        </div>

                        <div class="panel-footer">
                            <div class="">
                                <button type="submit" class="btn btn-success" tabindex="10">
                                    <i class="fa fa-plus"></i>&nbsp;&nbsp;Create
                                </button>&nbsp;&nbsp;
                                @Html.ActionLink("Back to projects", "Index")

                            </div>
                        </div>
                    </div>
                }
            </div>
        </fieldset>
    </div>
</main>